package com.zmn.oms.dubbo.interfaces.normal.captcha;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.oms.common.dio.normal.captcha.GetVerificationCodeDIO;
import com.zmn.oms.common.dio.normal.captcha.ValidateVerificationCodeDIO;
import com.zmn.oms.common.exception.OmsBaseException;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import javax.validation.constraints.NotNull;

/**
 * 类描述：
 *
 * @author liuyufan
 * @since 2021/12/01
 */
@Api(
        value = "验证码服务",
        tags = {"验证码服务"}
)
public interface CaptchaRemoteService {



    @ApiOperation(
            value = "给用户发送验证码操作",
            response = ResponseDTO.class,
            tags = {"验证码服务"}
    )
    ResponseDTO sendVerificationCodeToUser(@NotNull(message = "入参不能为空") @ApiParam(value = "入参", required = true)
                                                   GetVerificationCodeDIO getVerificationCodeDIO);

    @ApiOperation(
            value = "校验验证码",
            response = ResponseDTO.class,
            tags = {"验证码服务"}
    )
    ResponseDTO validateVerificationCode(@NotNull(message = "入参不能为空") @ApiParam(value = "入参", required = true)
                                                 ValidateVerificationCodeDIO validateVerificationCodeDIO);

}
